package com.sixseven.document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.CompletionField;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.core.completion.Completion;

import java.math.BigDecimal;

/**
 * @author Belly
 * @version 1.1.0
 */
@Document(indexName = "cowry")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cowry {
    @Id
    @Field
    private Integer id;
//    @CompletionField
//    @Transient
    @Field
    private String name;
    @Field
    private BigDecimal price;
    @Field
    private String imgPath;
}
